# $Id: Makefile 146 2010-07-05 10:36:21Z mod.cfp $

PROG = cfptest
SRCS = cfptest.c vct.c vsb.c
HDRS = cfptest.h miniobj.h vct.h vqueue.h vsb.h
OBJS = $(SRCS:%.c=%.o)
CFLAGS = -g -O0 -Wall -Wstrict-prototypes -Wmissing-prototypes		\
	 -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings	\
	 -Wswitch -Wshadow -Wcast-align -Wunused-parameter		\
	 -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls	\
	 -Wformat -Werror
DEFINES = -D_GNU_SOURCE
LDFLAGS = -lpthread -lm

all:	$(PROG)

$(PROG):	$(HDRS) $(OBJS)
	$(CC) $(CFLAGS) $(DEFINES) $(LDFLAGS) -o $(PROG) $(OBJS)

%.o :	%.c
	$(CC) $(CFLAGS) $(DEFINES) -c -o $@ $<

clean:
	rm -f $(PROG) $(OBJS)
